home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / include / dos / filesystem.h < prev   
C/C++ Source or Header  |  1996-10-10  |  2KB  |  76 lines

  1. #ifndef DOS_FILESYSTEM_H
  2. #define DOS_FILESYSTEM_H
  3. #include <exec/io.h>
  4.  
  5. struct IOFileSys
  6. {
  7.     struct IORequest IOFS; /* Standard I/O request */
  8.     LONG io_DosError;    /* Dos error code */
  9.     IPTR io_Args[4];    /* Array of Arguments (Ints and Pointers) */
  10. };
  11.  
  12. /*
  13.     Filesystem actions. Look into one of the filesystem sources for more
  14.     information on required parameters.
  15. */
  16. #define FSA_OPEN        1
  17. #define FSA_CLOSE        2
  18. #define FSA_READ        3
  19. #define FSA_WRITE        4
  20. #define FSA_SEEK        5
  21. #define FSA_SET_FILE_SIZE    6
  22. #define FSA_WAIT_CHAR        7
  23. #define FSA_FILE_MODE        8
  24. #define FSA_IS_INTERACTIVE    9
  25. #define FSA_SAME_LOCK        10
  26. #define FSA_EXAMINE        11
  27. #define FSA_EXAMINE_ALL        12
  28. #define FSA_EXAMINE_ALL_END    13
  29. #define FSA_OPEN_FILE        14
  30. #define FSA_CREATE_DIR        15
  31. #define FSA_CREATE_HARDLINK    16
  32. #define FSA_CREATE_SOFTLINK    17
  33. #define FSA_RENAME        18
  34. #define FSA_READ_SOFTLINK    19
  35. #define FSA_DELETE_OBJECT    20
  36. #define FSA_SET_COMMENT        21
  37. #define FSA_SET_PROTECT        22
  38. #define FSA_SET_OWNER        23
  39. #define FSA_SET_DATE        24
  40. #define FSA_IS_FILESYSTEM    25
  41. #define FSA_MORE_CACHE        26
  42. #define FSA_FORMAT        27
  43. #define FSA_MOUNT_MODE        28
  44. #if 0
  45. #define FSA_SERIALIZE_DISK    29
  46. #define FSA_FLUSH        30
  47. #define FSA_INHIBIT        31
  48. #define FSA_WRITE_PROTECT    32
  49. #define FSA_DISK_CHANGE        33
  50. #define FSA_ADD_NOTIFY        34
  51. #define FSA_REMOVE_NOTIFY    35
  52. #define FSA_DISK_INFO        36
  53. #define FSA_CHANGE_SIGNAL    37
  54. #define FSA_LOCK_RECORD        38
  55. #define FSA_UNLOCK_RECORD    39
  56. #endif
  57.  
  58. /* Modes for FSA_OPEN, FSA_OPEN_FILE and FSA_FILE_MODE */
  59. #define FMF_LOCK    1 /* Lock exclusively */
  60. #define FMF_EXECUTE    2 /* open for executing */
  61. #define FMF_WRITE    4 /* open for writing */
  62. #define FMF_READ    8 /* open for reading */
  63. #define FMF_CREATE    16 /* create file if it doesn't exist */
  64. #define FMF_CLEAR    32 /* clear file on open */
  65. #define FMF_RAW     64 /* switch cooked to raw and vice versa */
  66.  
  67. /* Mount modes */
  68. #define MMF_READ    1 /* Mounted for reading */
  69. #define MMF_WRITE    2 /* Mounted for writing */
  70. #define MMF_READ_CACHE    4 /* Read cache enabled */
  71. #define MMF_WRITE_CACHE 8 /* Write cache enabled */
  72. #define MMF_OFFLINE    16 /* Filesystem doesn't use the device currently */
  73. #define MMF_LOCKED    32 /* Mount mode is password protected */
  74.  
  75. #endif
  76.